﻿CREATE TRIGGER VacationYearDays_Tracking_Delete
ON [dbo].[VacationYearDays] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.VacationYearDays_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.VacationYearDays_Tracking s JOIN DELETED i
    ON s.VacationYearDayID = i.VacationYearDayID
END











